package ru.rchervot.sanasar.client.rpc;

import ru.rchervot.sanasar.client.model.ItemObject;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class GotItem<K extends ItemObject> implements AsyncCallback<GetItemResponse<K>> {
	public void onFailure(Throwable oops) {
	}
	
	public void onSuccess(GetItemResponse<K> result) {
		got(result.getDetails());
	}
	
	public abstract void got(K details);
}
